package com.smartfactory.sail.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smartfactory.sail.entity.Plan;
import com.smartfactory.sail.vo.plan.PlanDetailResp;
import com.smartfactory.sail.vo.plan.PlanReq;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王巨壁
 * @since 2019-09-05
 */
public interface IPlanService extends IService<Plan> {

    List<PlanDetailResp> create(Long id, Integer hours, String startDate, boolean isUrgentConfirm);

    List<PlanDetailResp> preview(Long id);

    List<PlanDetailResp> listPlanedOrderItem(long deptId,String startDate,Integer days);

    List<Plan> planOne(Long orderId, Long itemId, Integer hours, String date);

    int cancelPlan(long orderId, long itemId);

    void confirmPlan(long orderId, long itemId);

    List<PlanDetailResp> rePlan(PlanReq planReq);

    List<Plan> plansOfProduct(long itemId, long orderId);
}
